
/**
 * Write a description of interface GraphNode here.
 * 
 * @author Rudi Lutz 
 * @version 1.0
 */
package search;

/** This class represents a node in a state space for some problem. 
 * The type parameter <D> represents the information about a 
 * legal configuration of the problem.
 */
public class GraphNode<D>
{
    private D label;
    
    /** constructs a node labelled with label (a conguration of the problem)
     * 
     */
    public GraphNode(D label)
    {
        this.label = label;
    }
    
    /**returns the configuration represented by this node
     * 
     */
    public D getData()
    {
        return label;
    }
}
